import request from "@/utils/request";
//列表
export const preTimeConfigList = (data) =>
  request({
    url: `/sys/tc-pre-time-config/index`,
    method: "post",
    data,
  });
//详情
export const preTimeConfigDetail = (params) =>
  request({
    url: `/sys/tc-pre-time-config/detail`,
    method: "get",
    params,
  });
//新增
export const preTimeConfigCreate = (data) =>
  request({
    url: `/sys/tc-pre-time-config/create`,
    method: "post",
    data,
  });
//编辑
export const preTimeConfigUpdate = (data) =>
  request({
    url: `/sys/tc-pre-time-config/update`,
    method: "post",
    data,
  });
//删除
export const preTimeConfigDelete = (data) =>
  request({
    url: `/sys/tc-pre-time-config/delete`,
    method: "post",
    data,
  });
//仓点选项
export const optWp = (data) =>
  request({
    url: `/opts/wp-for-type`,
    method: "post",
    data,
  });
